<template>
  <el-form ref="feedback" :model="feedback" label-width="80px">
    <el-form-item label="问题反馈" class="width-500">
      {{feedback.title}}
    </el-form-item>
    <el-form-item label="反馈内容" class="width-500">
      {{feedback.content}}
    </el-form-item>
    <el-form-item label="反馈回复" class="width-500">
      {{feedback.reply ? feedback.reply : '暂未回复'}}
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  data () {
    return {
      feedback: {}
    }
  },
  mounted() {
    this.getFeedbackInfoData();
  },
  methods: {
    getFeedbackInfoData() {
      let id = this.$route.params.id;
      
      this.axios.get('/feedback/'+id).then((response) => {
        if(response.data.code == 200){
          this.feedback = response.data.data;
        }else{
          this.$message({
            message: '数据加载失败',
            type: 'error'
          });
        }
      });
    }
  }
}
</script>
